#!/bin/bash

echo "🔍 进入Docker容器并查看dist目录..."

# 启动容器并进入dist目录
docker run -it --rm gitbuild-74315dfd-ba99-46cd-a521-43e09201c207-node14:latest sh -c "
echo '📁 当前目录:'
pwd
ls -la

echo ''
echo '📁 进入dist目录:'
if [ -d 'dist' ]; then
    cd dist
    echo '当前在dist目录:'
    pwd
    ls -la
    
    echo ''
    echo '📁 检查dist/build目录:'
    if [ -d 'build' ]; then
        cd build
        echo '当前在dist/build目录:'
        pwd
        ls -la
        
        echo ''
        echo '📁 检查dist/build/mp-weixin目录:'
        if [ -d 'mp-weixin' ]; then
            cd mp-weixin
            echo '当前在dist/build/mp-weixin目录:'
            pwd
            ls -la
            
            echo ''
            echo '📁 mp-weixin目录的详细内容:'
            find . -type f | head -20
        else
            echo 'mp-weixin目录不存在'
        fi
    else
        echo 'build目录不存在'
    fi
else
    echo 'dist目录不存在'
fi
"
